package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维护记录对象 a_maintenance_records
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
public class AMaintenanceRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 维修记录id */
    @Excel(name = "维修记录id")
    private String maintenanceRecordsId;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long vehicleId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String actualVehiclePlate;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceTime;

    /** 维护用户ID */
    @Excel(name = "维护用户ID")
    private Long userId;

    /** 维修用户姓名 */
    @Excel(name = "维修用户姓名")
    private String userNamr;

    /** 维护原因 */
    @Excel(name = "维护原因")
    private String maintenanceReason;

    /** 维护地点 */
    @Excel(name = "维护地点")
    private String maintenanceLocation;

    /** 维护费用 */
    @Excel(name = "维护费用")
    private BigDecimal cost;

    /** 维修发票 */
    @Excel(name = "维修发票")
    private String invoice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMaintenanceRecordsId(String maintenanceRecordsId) 
    {
        this.maintenanceRecordsId = maintenanceRecordsId;
    }

    public String getMaintenanceRecordsId() 
    {
        return maintenanceRecordsId;
    }

    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }

    public void setActualVehiclePlate(String actualVehiclePlate) 
    {
        this.actualVehiclePlate = actualVehiclePlate;
    }

    public String getActualVehiclePlate() 
    {
        return actualVehiclePlate;
    }

    public void setMaintenanceTime(Date maintenanceTime) 
    {
        this.maintenanceTime = maintenanceTime;
    }

    public Date getMaintenanceTime() 
    {
        return maintenanceTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserNamr(String userNamr) 
    {
        this.userNamr = userNamr;
    }

    public String getUserNamr() 
    {
        return userNamr;
    }

    public void setMaintenanceReason(String maintenanceReason) 
    {
        this.maintenanceReason = maintenanceReason;
    }

    public String getMaintenanceReason() 
    {
        return maintenanceReason;
    }

    public void setMaintenanceLocation(String maintenanceLocation) 
    {
        this.maintenanceLocation = maintenanceLocation;
    }

    public String getMaintenanceLocation() 
    {
        return maintenanceLocation;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    public void setInvoice(String invoice) 
    {
        this.invoice = invoice;
    }

    public String getInvoice() 
    {
        return invoice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("maintenanceRecordsId", getMaintenanceRecordsId())
            .append("vehicleId", getVehicleId())
            .append("actualVehiclePlate", getActualVehiclePlate())
            .append("maintenanceTime", getMaintenanceTime())
            .append("userId", getUserId())
            .append("userNamr", getUserNamr())
            .append("maintenanceReason", getMaintenanceReason())
            .append("maintenanceLocation", getMaintenanceLocation())
            .append("cost", getCost())
            .append("invoice", getInvoice())
            .toString();
    }
}
